package xjh.him.entity;

import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author xjh
 * @since 2021-10-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class ChatMsg implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    /**
     * chat表外键
     */
    private Integer chatId;

    private Integer userId;

    /**
     * 消息类型。文本1、图片2、文件3
     */
    private Byte type;

    /**
     * 文本
     */
    private String content;

    private LocalDateTime createTime;


}
